﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PoemCrawler
{
    internal class AsyncResult<T>
    {
        public T? result;
        public Exception? exception;
        private void Init(T? result, Exception? exception)
        {
            this.result = result;
            this.exception = exception;
        }
        public AsyncResult(T result) => Init(result, null);
        public AsyncResult(Exception exception) => Init(default, exception);
    }
}
